﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;
using System.Data;

namespace DBLayer
{
    public class DB
    {

        static MySqlDB dataProvider = new MySqlDB();

        public static int Execute(string SqlString)
        {
            return dataProvider.Execute(SqlString);
        }

        public static DataTable Select(string SqlString)
        {
            return dataProvider.Select(SqlString);
        }

        public static void ExecuteTransaction(List<string> sqlList, List<MySqlParameter[]> paraList)
        {
            dataProvider.ExecuteTransaction(sqlList, paraList);
        }

    }
}
